﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BUS;

namespace Ketnoidulieu
{
    public partial class BTtr194 : Form
    {
        public BTtr194()
        {
            InitializeComponent();
        }

        private void BTtr194_Load(object sender, EventArgs e)
        {
            loaddgvsinhvien();
            loadcbblop();
        }

        private void loaddgvsinhvien()
        {
            DataTable dt = SinhVien_BUS.loaddulieusv();
            dgvsv.DataSource = dt;
        }
        private void loadcbblop()
        {
            DataTable dt = Lop_BUS.loaddulieulop();
            cbblop.DisplayMember = "tenlop";
            cbblop.ValueMember = "malop";
            cbblop.DataSource = dt;
        }
    }
}
